package rim;

import datatypes.r2.basic.CD;
import datatypes.r2.basic.CS;
import datatypes.r2.basic.ED;
import datatypes.r2.basic.ST;
import datatypes.r2.foundation.DSET;

/**
 * Definition of AcknowledgementDetail:
 * 
 * A message that provides information about the communication, parsing or
 * formal (non-business-rule) validation of the message being acknowledged.
 * 
 * 一个消息，提供有关信息的沟通，分析或正式（非业务规则）的消息验证确认。
 * 
 * 
 * @author Obama
 * 
 */
public class AcknowledgementDetail extends InfrastructureRoot {

	private static final long serialVersionUID = 1L;
	/**
	 * Definition: The kind of information specified in the acknowledgement
	 * message.
	 * 
	 * 在确认消息中指定的信息。
	 * 
	 * 
	 * Examples:
	 * 
	 * Error, warning, information.
	 * 
	 * 错误，警告信息。
	 */
	private CS typeCode;
	/**
	 * Definition: The type of acknowledgement, from an enumerated set of
	 * acknowledgement types.
	 * 
	 * 确认，确认类型的枚举集。
	 * 
	 * 
	 * DesignComments:
	 * 
	 * Original examples seem to indicate text, not code, by including specific
	 * attributes, dates. New examples supplied from concept domain.
	 * 
	 * 原来的例子似乎说明文字，而不是代码，包括特定的属性，日期。从概念域提供新的范例。
	 * 
	 * 
	 * Examples:
	 * 
	 * Required attribute missing; unsupported interaction; invalid code system
	 * in CNE.
	 * 
	 * 必需的属性丢失;不受支持的互动;在鼻咽癌无效的代码系统。
	 */
	private CD code;
	/**
	 * Definition: Additional diagnostic information relevant to the message.
	 * 
	 * 额外的诊断信息有关的消息。
	 * 
	 * 
	 * UsageNotes:
	 * 
	 * This may be free text or structured data (e.g., XML).
	 * 
	 * 这可能是免费的文字或结构化数据（例如，XML）。
	 * 
	 * 
	 * Examples:
	 * 
	 * Java exception, memory dump, internal error code, call-stack information
	 * 
	 * Java异常，内存转储，内部错误代码，调用堆栈信息
	 */
	private ED text;
	/**
	 * Definition: Definition: The position within the message being
	 * acknowledged that is related to the acknowledgement message.
	 * 
	 * 定义：内消息的立场承认，有关确认消息。
	 * 
	 * 
	 * UsageNotes:
	 * 
	 * Only messages with localized errors will have this attribute populated.
	 * Open Issue: The specific format for the string that defines the message
	 * location needs to be identified. This might be "XPath" or possibly "OCL".
	 * 
	 * 只有本地化错误消息将填充这个属性。悬而未决的问题：需要确定特定格式的字符串，定义消息的位置。这可能是“XPath的”或者“八达通”。
	 * 
	 * 
	 * Examples:
	 * 
	 * Location of missing required attribute; location of invalid code in CNE;
	 * location not valued for unsupported interaction.
	 * 
	 * 缺少必需的属性的位置;鼻咽癌无效的代码位置;位置不重视不支持的相互作用。
	 */
	private DSET<ST> location;

	private Acknowledgement acknowledgement;

	public CS getTypeCode() {
		return typeCode;
	}

	public void setTypeCode(CS typeCode) {
		this.typeCode = typeCode;
	}

	public CD getCode() {
		return code;
	}

	public void setCode(CD code) {
		this.code = code;
	}

	public ED getText() {
		return text;
	}

	public void setText(ED text) {
		this.text = text;
	}

	public DSET<ST> getLocation() {
		return location;
	}

	public void setLocation(DSET<ST> location) {
		this.location = location;
	}

	public Acknowledgement getAcknowledgement() {
		return acknowledgement;
	}

	public void setAcknowledgement(Acknowledgement acknowledgement) {
		this.acknowledgement = acknowledgement;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
